package com.yunxi.sto.service;

import com.github.pagehelper.PageInfo;
import com.yunxi.sto.pojo.DailyReportVO;
import com.yunxi.sto.pojo.MonthlyReportVO;
import com.yunxi.sto.pojo.YearReportVO;

import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;

public class DailyReportDubboServiceMock implements DailyReportDubboService {
    @Override
    public PageInfo<DailyReportVO> findPageByVO(DailyReportVO dailyReportVO, Integer pageNum, Integer pageSize) throws Exception {
        PageInfo<DailyReportVO> page = new PageInfo<>();
        List list  =  new ArrayList();
        DailyReportVO vo =  new DailyReportVO();
        vo.setPartnerCode("暂无数据");
        list.add(vo);
        page.setList(list);
        return page;

    }

    @Override
    public PageInfo<YearReportVO> yearList3(YearReportVO yearReportVO, Integer pageNum, Integer pageSize) throws Exception {
        PageInfo<YearReportVO> page = new PageInfo<>();
        List list  =  new ArrayList();
        YearReportVO vo =  new YearReportVO();
        vo.setPartnerCode("暂无数据");
        list.add(vo);
        page.setList(list);
        return page;
    }

    @Override
    public void monthCalcMain(MonthlyReportVO monthlyReportVO) throws Exception {

    }

    @Override
    public void yearCalcMain(YearReportVO yearReportVO) throws Exception {

    }

    @Override
    public PageInfo<MonthlyReportVO> monthPage3(MonthlyReportVO monthlyReportVO, Integer pageNum, Integer pageSize) throws Exception {
        PageInfo<MonthlyReportVO> page = new PageInfo<>();
        List list  =  new ArrayList();
        MonthlyReportVO vo =  new MonthlyReportVO();
        vo.setContent("暂无数据");
        list.add(vo);
        page.setList(list);
        return page;
    }

    @Override
    public PageInfo<DailyReportVO> dayPage(DailyReportVO dailyReportVO, Integer pageNum, Integer pageSize) throws Exception {
        PageInfo<DailyReportVO> page = new PageInfo<>();
        List list  =  new ArrayList();
        DailyReportVO vo =  new DailyReportVO();
        vo.setPartnerCode("暂无数据");
        list.add(vo);
        page.setList(list);
        return page;
    }

    @Override
    public void dayCalcMain(DailyReportVO dailyReportVO) throws SQLException {

    }
}
